home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2011 April / ME_2011_04.iso / [Video-Tutorial] / 9430830 / bookmarks.swf / scripts / frame_1 / DoAction_4.as < prev    next >
Encoding:
Text File  |  2009-11-16  |  931 b   |  39 lines

  1. function init()
  2. {
  3.    if(this._parent == undefined)
  4.    {
  5.       Stage.align = "LT";
  6.       Stage.scaleMode = "noScale";
  7.       fsp_path = "";
  8.       folder = "";
  9.       bmPanelListener.onResize = setLocalPos;
  10.       Stage.addListener(bmPanelListener);
  11.       generateSettings();
  12.       setStartScreen();
  13.       setLocalPos();
  14.       loadContentXml();
  15.    }
  16.    else
  17.    {
  18.       bmPanelListener.onCustomResize = setLocalPos;
  19.       _root.content_pos_mc.content_panel_mc.addListener(bmPanelListener);
  20.       setStartScreen();
  21.       setLocalPos();
  22.       video_array = _root.video_array;
  23.       loadPdBookmarks();
  24.    }
  25. }
  26. this.onEnterFrame = function()
  27. {
  28.    if(this.getBytesLoaded() >= this.getBytesTotal())
  29.    {
  30.       delete this.onEnterFrame;
  31.       if(this._parent == undefined)
  32.       {
  33.          local_test = true;
  34.          v2b_so = SharedObject.getLocal("video2brain_test","/");
  35.          init();
  36.       }
  37.    }
  38. };
  39.